package com.unme.service.impl;


import com.unme.dao.ArticleDao;
import com.unme.model.Article;
import com.unme.service.ArticleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ArticleServiceImpl implements ArticleService {

	@Autowired
    private ArticleDao articleDao;
	@Override
	public void addArticle(Article article) {
		articleDao.addArticle(article);
	}

	@Override
	public void deleteArticle(Article article) {
            articleDao.deleteArticle(article);
	}

	@Override
	public void updateArticle(Article article) {
           articleDao.updateArticle(article);
	}

	@Override
	public List<Article> findArticle(Article article) {
		return articleDao.findArticle(article);
	}

	@Override
	public Article getArticleById(Article article) {
		return articleDao.getArticleById(article);
	}
}
